<div class="modTitle clearfix">
	<span class="left"></span><span class="right"></span>
	<div class="f_l"><?php echo $this->_var['lang']['goods_category']; ?></div>
	<div class="more"><a href="catalog.php" target="_blank"><?php echo $this->_var['lang']['catalog']; ?></a></div>
</div>
<div class="modBox">
  <dl id="category_tree">
	<?php $_from = $this->_var['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');if (count($_from)):
    foreach ($_from AS $this->_var['cat']):
?>
	<div class="toggleblock">
     <dt class="clearfix">
		 <a href="<?php echo $this->_var['cat']['url']; ?>" class="f_l"><?php echo htmlspecialchars($this->_var['cat']['name']); ?></a></dt>
		 <?php if ($this->_var['cat']['cat_id']): ?>
		 <dd>
     <?php $_from = $this->_var['cat']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');if (count($_from)):
    foreach ($_from AS $this->_var['child']):
?>
     <a href="<?php echo $this->_var['child']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['child']['name']); ?>"><?php echo htmlspecialchars($this->_var['child']['name']); ?></a>
     <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
		 </dd>
		 <?php endif; ?>
	</div>	 
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	</dl> 
</div>
